package com.zego.wawaji.ui.center.question.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONObject;

/**
 * 问题
 * Created by Su on 2018/4/12.
 */
public class Question extends BaseData {
    private int id;
    private String title;   // 问题标题
    private String content; // 问题内容

    private int feedStatus;  // 问题状态  -3:待解决 -2:已回复 -1:未解决 1:已解决
    private String reply;  // 回复内容

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.id = jsonObject.optInt("Id");
        this.title = jsonObject.optString("Title");
        this.content = jsonObject.optString("Content");
        this.feedStatus = jsonObject.optInt("FeedStatus");
        this.reply = jsonObject.optString("Reply");
    }

    public int getFeedStatus() {
        return feedStatus;
    }

    public String getReply() {
        return reply;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }
}
